@extends('admin.master')

@section('top')
<div class="top-breadcrumb pull-left">{!! Breadcrumbs::render() !!}</div>
@endsection

@section('content')
	{!! Form::model($data, ['route' => ['admin.menu.update', $data->id], 'method'=>'patch', 'class'=>'form-horizontal']) !!}
		<div class="form-group">
			<label class="col-sm-4 control-label label-width">
				<span class="text-danger">*</span> <span>菜单名称：</span>
			</label>
			<div class="col-sm-8 row">
				{!! Form::text('name', null, ['class'=>'form-control len']) !!}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-4 control-label label-width">菜单分类：</label>
			<div class="col-sm-8 row">
				{!! Form::select('pid', $topMenu, null, ['class'=>'form-control len']) !!}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-4 control-label label-width">URL地址：</label>
			<div class="col-sm-8 row">
				{!! Form::text('url', null, ['class'=>'form-control len']) !!}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-4 control-label label-width">标签：</label>
			<div class="col-sm-8 row">
				{!! Form::text('label', null, ['class'=>'form-control len', 'placeholder'=>'请填写此菜单标签描述']) !!}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-4 control-label label-width"></label>
			<div class="col-sm-8 row">
				{!! Form::submit('提交', ['class'=>'btn btn-primary btn-submit']) !!}
			</div>
		</div>
	{!! Form::close() !!}
@endsection